#-------------------------------------------------
#
# Project created by QtCreator 2013-07-29T13:11:52
#
#-------------------------------------------------

QT       += core serialport xml network sql
QT       -= gui

CONFIG   += console
CONFIG   -= app_bundle
CONFIG   += c++11

TEMPLATE = app
DESTDIR  = ../sleeper/bin

UI_DIR  = build
RCC_DIR = build

CONFIG(debug, debug|release) {
    TARGET = modemsrvd

    OBJECTS_DIR = build/debug
    MOC_DIR     = build/debug

}
else {
    TARGET = modemsrv

    OBJECTS_DIR = build/release
    MOC_DIR     = build/release
}



SOURCES += src/main.cpp \
    src/modemmanager.cpp \
    src/messagehandler.cpp \
    src/ctrlchandler.cpp \
    src/application.cpp \
    src/rpcserver.cpp \
    src/archivedb.cpp \
    src/datascheme.cpp

HEADERS += \
    src/modemmanager.hpp \
    src/messagehandler.hpp \
    src/application.hpp \
    src/ctrlchandler.hpp \
    src/rpcserver.hpp \
    src/archivedb.hpp
include(config.pri)

INCLUDEPATH += ../gsm/src ../gsmcomm/src ../utils
LIBS +=        -L../sleeper/lib
CONFIG(debug, debug|release) {
    LIBS += -lmoleutilsd
    LIBS += -lqloggerd
    LIBS += -lgsmd -lgsmcommd
    LIBS += -lqtxmlrpcd
} else {
    LIBS += -lmoleutils
    LIBS += -lgsm  -lgsmcomm
    LIBS += -lqtxmlrpc
    LIBS += -lqlogger
}

